/////////////////////////////////////////////////
repo:    comment_driven
target:  comment_driven
branch:  6.x-1.x
tags:    
node:    d2a3326292326bf45cca9e235a9e48860c171cca
changes:
* TEMP: support WYSIWYG [#747616] (trial patch)
/////////////////////////////////////////////////
=================================================
message: TEMP: support WYSIWYG [#747616] (trial patch)
branch:  6.x-1.x
tags:    
node:    c8c9f3c10e7f67b85bd8d5b7ed9e3addd71f44a8
=================================================
diff -r d2a332629232 -r c8c9f3c10e7f comment_driven/comment_driven.module
--- comment_driven.module	Sat Mar 20 01:58:00 2010 -0500
+++ comment_driven.module	Sat Mar 20 02:06:34 2010 -0500
@@ -760,6 +760,15 @@ function _comment_driven_disguise_childr
   }
   
   foreach (element_children($element) as $key) {
+    // avoid disguising non-conflictive sub-elements
+    // since we know they parent was already disguised
+    // (support WYSIWYG [#747616])
+    if ($element[$key]['#type'] == 'radio') {
+      foreach ($element[$key]['#parents'] as $index => $parent) {
+        $element[$key]['#parents'][$index] = COMMENT_DRIVEN__DISGUISE_PREFIX . $parent;
+      }
+      continue; // no need to recursive disguise
+    }
     // protect ourself against 3rd parties creating NULL children (e.g. [#736968], [#737044])
     // lets babysit NULL children, but it has to be an array otherwise
     if (!is_null($element[$key])) {
/////////////////////////////////////////////////
generated with: drudiff comment_driven comment_driven 288 290 
/////////////////////////////////////////////////
